﻿using System;
using YinfangWeb.Common;

namespace YinfangWeb.Model
{
	/// <summary>
	/// OrderCart
	/// </summary>
    [Serializable]
	public class OrderCart
	{
		/// <summary>
		/// OrderCartID
        /// </summary>
        [FieldName("OrderCartID")]		
		public int OrderCartID
		{
			get;
			set;
		}
        
		/// <summary>
		/// CartState
        /// </summary>
        [FieldName("CartState")]		
		public int CartState
		{
			get;
			set;
		}
        
		/// <summary>
		/// ProductDataID
        /// </summary>
        [FieldName("ProductDataID")]		
		public int ProductDataID
		{
			get;
			set;
		}
        
		/// <summary>
		/// ProductParamID
        /// </summary>
        [FieldName("ProductParamID")]		
		public int ProductParamID
		{
			get;
			set;
		}
        
		/// <summary>
		/// MerchantDataID
        /// </summary>
        [FieldName("MerchantDataID")]		
		public int MerchantDataID
		{
			get;
			set;
		}
        
		/// <summary>
		/// Number
        /// </summary>
        [FieldName("Number")]		
		public int Number
		{
			get;
			set;
		}
        
		/// <summary>
		/// RegDateTime
        /// </summary>
        [FieldName("RegDateTime")]		
		public DateTime RegDateTime
		{
			get;
			set;
		}
        
		/// <summary>
		/// RegUserID
        /// </summary>
        [FieldName("RegUserID")]		
		public int RegUserID
		{
			get;
			set;
		}
        
		/// <summary>
		/// EditDateTime
        /// </summary>
        [FieldName("EditDateTime")]		
		public DateTime EditDateTime
		{
			get;
			set;
		}
        
		/// <summary>
		/// EditUserID
        /// </summary>
        [FieldName("EditUserID")]		
		public int EditUserID
		{
			get;
			set;
		}
        
        public OrderCart Clone()
        {
            return (OrderCart)this.MemberwiseClone();
        }
        
        public OrderCart()
        {
            RegDateTime = ConvertHelper.DefaultDate;
            EditDateTime = ConvertHelper.DefaultDate;
        }
	}
}
